package com.gxa.employment.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 学生信息表
 * </p>
 *
 * @author author
 * @since 2025-03-25
 */
@Getter
@Setter
@ToString
@TableName("tb_student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学生ID
     */
    @TableId(value = "stu_id", type = IdType.AUTO)
    private Integer stuId;

    /**
     * 姓名
     */
    @TableField("stu_name")
    private String stuName;

    /**
     * 性别:男,女
     */
    @TableField("stu_gender")
    private String stuGender;

    /**
     * 年龄
     */
    @TableField("stu_age")
    private Byte stuAge;

    /**
     * 学历
     */
    @TableField("stu_edu")
    private String stuEdu;

    /**
     * 专业
     */
    @TableField("stu_major")
    private String stuMajor;

    /**
     * 毕业时间
     */
    @TableField("stu_grad")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDate stuGrad;

    /**
     * 所属班级ID
     */
    @TableField("clazz_id")
    private Integer clazzId;

    /**
     * 就业状态:就业,就业中,推迟,放弃,推就业中
     */
    @TableField("stu_status")
    private String stuStatus;


    /**
     * 创建时间
     */
    @TableField("created")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime created;

    /**
     * 更新时间
     */
    @TableField("updated")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime updated;

    /**
     * 逻辑删除标识
     */
    @TableField("deleted")
    private Boolean deleted;
}
